package com.pandora.credit.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * @author Daniel Wang
 * @date 2018/1/19
 */
public class MessageResponse {
    private String type;
    private List<MessageResponseItem> items;
    @JsonProperty("next_id")
    private Long nextId;

    public MessageResponse(String type, List<MessageResponseItem> items, Long nextId) {
        this.type = type;
        this.items = items;
        this.nextId = nextId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<MessageResponseItem> getItems() {
        return items;
    }

    public void setItems(List<MessageResponseItem> items) {
        this.items = items;
    }

    public Long getNextId() {
        return nextId;
    }

    public void setNextId(Long nextId) {
        this.nextId = nextId;
    }

    public static class MessageResponseItem{
        private String content;
        @JsonProperty("customer_id")
        private long customerId;
        private String datetime;
        private long id;
        @JsonProperty("object_id")
        private long objectId;
        private int status;

        public MessageResponseItem(String content, long customerId, String datetime, long id, long objectId, int status) {
            this.content = content;
            this.customerId = customerId;
            this.datetime = datetime;
            this.id = id;
            this.objectId = objectId;
            this.status = status;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public long getCustomerId() {
            return customerId;
        }

        public void setCustomerId(long customerId) {
            this.customerId = customerId;
        }

        public String getDatetime() {
            return datetime;
        }

        public void setDatetime(String datetime) {
            this.datetime = datetime;
        }

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public long getObjectId() {
            return objectId;
        }

        public void setObjectId(long objectId) {
            this.objectId = objectId;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }
}
